package org.misalen.web.support.jobs;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * 
 * 测试
 * 
 * @author misaya
 *
 */
public class TestJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
//		StringUtil.log("测试", StringUtil.formatTimestamp(new Date()));
//		try {
//			PooledConnection connection = DBManager.getConnection();
//			ResultSet resultSet = connection.executeQuery("select * from sys_user");
//			ResultSetMapper<SysUser> resultSetMapper = new ResultSetMapper<SysUser>();
//			List<SysUser> sysUsers = resultSetMapper.mapRersultSetToObject(resultSet, SysUser.class);
//			for (SysUser sysUser : sysUsers) {
//				System.err.println(sysUser.getClass().getName());
//			}
//			connection.setBusy(false);
//		} catch (SQLException e) {
//
//		}

	}

}
